<?php

class CommentHelper extends AppHelper {

	
	function searchForComment($blid){
		$result = mysql_query("SELECT COUNT(*) AS count FROM blacklists WHERE id = '$blid' AND comment IS NULL");
		$count = mysql_fetch_object($result)->count;
		return $count;
	}

    function getComment($blid){
    	$result = mysql_query("SELECT comment FROM blacklists WHERE id = '$blid'");
    	$text = mysql_fetch_object($result)->comment;
    	return $text;
    }

}

?>